//
//  RecommendTableViewCell.m
//  网络FM
//
//  Created by dllo on 15/5/22.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "RecommendTableViewCell.h"

@implementation RecommendTableViewCell
- (void)dealloc
{
    [_cellImageView release];
    [_cellFirstLable release];
    [_cellSecondLable release];
    [super dealloc];
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.cellImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 20, 80, 80)];
        self.cellImageView.backgroundColor = [UIColor blackColor];
        //图片圆角的设置
        self.cellImageView.layer.cornerRadius = 10;
        self.cellImageView.clipsToBounds =YES;
        [self.contentView addSubview:self.cellImageView];
        
        
        
        
        self.cellFirstLable = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 3 + 20, 10, self.frame.size.width / 2, 50)];
        //字体大小
        self.cellFirstLable.font = [UIFont boldSystemFontOfSize:25];
        [self.contentView addSubview:self.cellFirstLable];
        
        
        
        
        self.cellSecondLable = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 3 + 20, 50 + 10 + 10 , [UIScreen mainScreen].bounds.size.width / 3 * 2 - 10, 50)];
        //自动换行和字体颜色
        self.cellSecondLable.numberOfLines = 0;
        self.cellSecondLable.textColor = [UIColor lightGrayColor];
        [self.contentView addSubview:self.cellSecondLable];
        
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
